<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="${contextPath}/ureport/res/ureport-asserts/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
#if($FAST_LOGIN_CSRF_TOKEN.length()>0)
<meta content="${FAST_LOGIN_CSRF_TOKEN}" name="csrf-token" />
#end
<meta name ="viewport" content ="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
<title>J2eeFAST平台-Ureport2表报</title>
<script src="${contextPath}/static/libs/jquery.min.js"></script>
<script src="${contextPath}/static/libs/jquery-migrate.min.js"></script>
<script type="text/javascript"  src="${contextPath}/static/config.js"></script>
<script src="${contextPath}/static/plugins/blockUI/jquery.blockUI.js"></script>
<script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/bootstrap.min.js"></script>
<script src="${contextPath}/static/plugins/echarts/echarts.min.js"></script>
#if($upSearchFormHtml.length()>0 || $downSearchFormHtml.length() > 0)
<link rel="stylesheet" href="${contextPath}/static/plugins/select2/select2.min.css"/>
<link rel="stylesheet" href="${contextPath}/static/plugins/select2/select2-bootstrap.css"/>
<link rel="stylesheet" href="${contextPath}/static/css/iCheck/all.css" />
<link rel="stylesheet" href="${contextPath}/static/css/font-awesome.min.css"/>
<script src="${contextPath}/static/plugins/select2/select2.min.js"></script>
<script src="${contextPath}/static/plugins/iCheck/icheck.min.js"></script>
<script src="${contextPath}/static/plugins/blockUI/jquery.blockUI.js"></script>
<script src="${contextPath}/static/plugins/laydate/laydate.js"></script>
<script type="text/javascript" src="${contextPath}/ureport/res/ureport/js/preview.js"></script>
#end
<script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/Chart.bundle.min.js"></script>
<script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/chartjs-plugin-datalabels.min.js"></script>
<!-- <script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/bootstrap-datetimepicker.js"></script>-->
<script type="text/javascript" src="${contextPath}/ureport/res/ureport/js/preview.bundle.js"></script>
<link rel="stylesheet" href="${contextPath}/ureport/res/ureport/css/preview.css"/>
#if($style.length()>0)
<style type="text/css" id="_ureport_table_style">
${style}
</style>
#end
</head>
<body style="margin:5px">
${upSearchFormHtml}
#if($tools.show)
<div #if($upSearchFormHtml.length()>0 || $downSearchFormHtml.length() > 0) id="_from_print"#end style="border:solid 1px #ddd;border-radius:5px;height:35px;margin-bottom:5px;background:#f8f8f8">
    <div style="text-align:${reportAlign}">
        #if($tools.print)
        <button type="button" class="btn btn-default ureport-print" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="打印当前">
            <img src='${contextPath}/ureport/res/ureport/img/print2.svg' width="20px" height="20px"> 打印当前
        </button>
        #if( $pageAll)
        <button type="button" class="btn btn-default ureport-printAll" #if($pageIndex>0) data-pg="${totalPageWithCol}" #end style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="打印所有">
            <img src='${contextPath}/ureport/res/ureport/img/print3.svg' width="24px" height="24px"> 打印所有
        </button>
        #end
        #end
        #if($tools.pdfPrint)
        <button type="button" class="btn btn-default ureport-pdf-direct-print" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="PDF在线打印">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/pdf-direct-print.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.pdfPreviewPrint)
        <button type="button" class="btn btn-default ureport-pdf-print" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="PDF在线预览打印">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/pdf-print.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.pdf)
        <button type="button" class="btn btn-default ureport-export-pdf" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="导出PDF">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/pdf.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.word)
        <button type="button" class="btn btn-default ureport-export-word" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="导出WORD">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/word.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.excel)
        <button type="button" class="btn btn-default ureport-export-excel" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="导出EXCEL">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/excel.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.pagingExcel)
        <button type="button" class="btn btn-default ureport-export-excel-paging" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="分页导出EXCEL">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/excel-paging.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.sheetPagingExcel)
        <button type="button" class="btn btn-default ureport-export-excel-paging-sheet" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="分页分Sheet导出EXCEL">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/excel-with-paging-sheet.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.paging)
        <div class="btn-group">
            <!-- 屏蔽
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="background:#f8f8f8;border:none;color:#337ab7">
                #if($pageIndex>0)
                分页预览
                #else
                预览所以
                #end
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" role="menu">
                #if($hasTools)
                <li><a href="${contextPath}/ureport/preview?_u=${file}&__f=${__f}&_t=${_t}&${customParameters}" style="color:#337ab7">预览</a></li>
                #else
                <li><a href="${contextPath}/ureport/preview?_u=${file}&__f=${__f}&${customParameters}" style="color:#337ab7">预览</a></li>
                #end
                #if($hasTools)
                <li><a href="${contextPath}/ureport/preview?_u=${file}&__f=${__f}&_i=1&_t=${_t}&${customParameters}" style="color:#337ab7">分页预览</a></li>
                #else
                <li><a href="${contextPath}/ureport/preview?_u=${file}&__f=${__f}&_i=1&${customParameters}" style="color:#337ab7">分页预览</a></li>
                #end
            </ul>
            -->
        </div>
        #end
        #if($pageIndex>0)
        <span id='pagingContainer' style="font-size:14px;margin-left:1px;color:#337ab7">
			共<span id='totalPageLabel'>${totalPageWithCol}</span>页
			<select id="pageSelector" class="form-control noselect2" style="display:inline-block;width:inherit;font-size:13px;height:28px;margin-top:2px">
				#foreach($index in [1..$totalPageWithCol])
				<option>${index}</option>
				#end
			</select>
			<span id='pageLinkContainer'></span>
		</span>
        #end
    </div>
</div>
#end
${downSearchFormHtml}
<div id="_ureport_table" style="float:${reportAlign}">
    ${content}
</div>
<iframe name="_print_frame" width="0" height="0" frameborder="0" src="about:blank"></iframe>
<iframe name="_print_pdf_frame" width="0" height="0" frameborder="0" src="about:blank"></iframe>
<script type="text/javascript">
    window._server="${contextPath}/ureport";
    window.formElements=[];
    window.__doSearch = function(){
        submitSearchForm("${file}","${customParameters}");
    }
    $(document).ready(function(){
        var totalPageWithCol = 0;
        var pageIndex = 0;
        #if( $totalPageWithCol)
            totalPageWithCol = ${totalPageWithCol};
        #end
        #if( $pageIndex)
            pageIndex = ${pageIndex};
        #end

        buildPaging(pageIndex,totalPageWithCol);

        #if($intervalRefreshValue>0)
        _intervalRefresh($intervalRefreshValue,$totalPageWithCol);
        #end

        #if( $chartDatas)
            _buildChartDatas(${chartDatas});
        #end

        #if( $echartDatas)
            _buildEchartDatas(${echartDatas});
        #end


        ${searchFormJs}

        #if( $file)
        function doSearch(){
            __doSearch();
        }
        function __resetBut(){
            var inpt = $(".form-horizontal").find('input, select');
            $.each(inpt, function() {
                if(this.tagName == "SELECT"){
                    $(this).val(null).trigger("change");
                }
                else if(this.tagName == "INPUT"){
                    this.value = "";
                }
            });
            doSearch();
        }
        #end

        #if($watermark.length()>0)
        _watermark(window,{"watermark_txt":"${watermark}"})
        #end
    });

</script>
</body>
</html>